﻿using BarManager.Core.BusinessRules.Interfaces.Validator;
using BarManager.Core.BusinessRules.Specification;
using BarManager.Core.DomainService;
using BarManager.Core.Entity;

namespace BarManager.Core.BusinessRules.Validator
{
    public class ProductoValidator : BaseValidator<Producto>, IProductoValidator
    {
        public ProductoValidator(IProductoRepository repository)            
        {
            Rules.Add(new Rule<Producto>(ValidatorType.Add, new ProductoAddSpecification(repository)));
            //Rules.Add(new Rule<Producto>(ValidatorType.Update, new ProductoAddSpecification(repository))); 
        }
    }    
}
